Validates a credit card number the user enters based on the rules of that card such as the value of first digit, the number of digits, as well as several other computations. Useful for online order form validation. Note: Although this form does not capture your credit card information, if you do not feel comfortable entering your credit card number to test this script, please DO NOT ! |
|
JavaScript Source Code 2002: Forms: Credit Card Validation
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
|